package com.gs;

import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.UIManager;

import org.jb2011.lnf.beautyeye.BeautyEyeLNFHelper;
import org.jdesktop.application.SingleFrameApplication;

public class Test extends SingleFrameApplication{

	//private CodeViewer codeViewer; 
	 	public static final String CONTROL_VERY_LIGHT_SHADOW_KEY = "controlVeryLightShadowColor";
	    public static final String CONTROL_LIGHT_SHADOW_KEY = "controlLightShadowColor";
	    public static final String CONTROL_MID_SHADOW_KEY = "controlMidShadowColor";
	    public static final String CONTROL_VERY_DARK_SHADOW_KEY = "controlVeryDarkShadowColor";
	    public static final String CONTROL_DARK_SHADOW_KEY = "controlDarkShadowColor";
	    public static final String TITLE_GRADIENT_COLOR1_KEY = "titleGradientColor1";
	    public static final String TITLE_GRADIENT_COLOR2_KEY = "titleGradientColor2";
	    public static final String TITLE_FOREGROUND_KEY = "titleForegroundColor";
	    public static final String CODE_HIGHLIGHT_KEY = "codeHighlightColor";
	    public static final String TITLE_FONT_KEY = "titleFont";
	    public static final String SUB_PANEL_BACKGROUND_KEY = "subPanelBackgroundColor";

	    public static final int MAIN_FRAME_WIDTH = 880;
	    public static final int MAIN_FRAME_HEIGHT = 640;
	    public static final int DEMO_SELECTOR_WIDTH = 186;
	    public static final int DEMO_PANEL_HEIGHT = 400;
	    public static final int DEMO_PANEL_WIDTH = MAIN_FRAME_WIDTH - DEMO_SELECTOR_WIDTH;
	
	 // GUI components
	    private JPanel mainPanel;
	    //private DemoSelectorPanel demoSelectorPanel;
	    //private AnimatingSplitPane demoSplitPane;
	    private JPanel demoContainer;
	    private JComponent currentDemoPanel;
	    private JComponent demoPlaceholder;
	    private JPanel codeContainer;
	   // private CodeViewer codeViewer;    
	    private JCheckBoxMenuItem sourceCodeCheckboxItem;
	    private ButtonGroup lookAndFeelRadioGroup;
	    
	    private JPopupMenu popup;
	    
	    public static void main(String[] args) {
		// TODO Auto-generated method stub
	    	
		launch(Test.class, args);
	}

	@Override
	protected void startup() {
		JLabel label = new JLabel(" Hello World ");
        //label.setFont(new Font("LucidaSans", Font.PLAIN, 32));
        show(label);
	       
	}

	@Override
	protected void initialize(String[] args) {
		// TODO Auto-generated method stub
		 try {
	        	// TODO Use nimbus L&F by Oracle
//	          UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
	        	
	        	// TODO Use Beauty L&F by Jack Jiang
			 BeautyEyeLNFHelper.frameBorderStyle=BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow; 
	        	BeautyEyeLNFHelper.launchBeautyEyeLNF();
	        	UIManager.put("RootPane.setupButtonVisible", false);
	        	
	        } catch (Exception ex) {
	            // not catestrophic
	        }
	}
  

}
